package chapter11;

public class Day10 {
    public static void main(String[] args) {
        int[] arr = {1,2,5,6,8,9,2,6,7};
        boolean flag = true;
        for (int i = 0; i <arr.length ; i++) {
            for (int j = i+1; j <arr.length ; j++) {
                if (arr[i]==arr[j]){
                    flag = false;
                    break;
                }else {
                    flag = true;
                    break;
                }
            }
        }
        if (flag){
            System.out.println("重复了");
        }else {
            System.out.println("没有重复");
        }
    }
}
